//px 转换为1920的 px
let convertPx = function (px) {
    let cn = convertFontSizeFo1920();
    return px * cn;
}
//获取转换度
let convertFontSizeFo1920 = function () {
    let html = document.documentElement;
    let cliWidth = html.clientWidth;
    return (cliWidth / 1920);
}
let fontFormatter = {
    convertPx: convertPx,
    convertFontSizeFo1920: convertFontSizeFo1920
};
export default fontFormatter
